<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>考试详情</title>
    <style>
        .correct {
            color: green;
        }
        .wrong {
            color: red;
        }
    </style>
</head>
<body>
<h1>考试详情</h1><p></p>
<span>考试名称: <u style="text-decoration: underline; display: inline;">${exam.paperName}</u></span> &nbsp;
<span>姓名: <u style="text-decoration: underline; display: inline;">${exam.nickName}</u></span> &nbsp;
<span>成绩: <u style="text-decoration: underline; display: inline;">${exam.examScore}</u></span> &nbsp;
<span>及格: <u style="text-decoration: underline; display: inline;">
            <#if exam.passFlag>
                <span>及格</span>
            <#else>
                <span>不及格</span>
            </#if>
          </u>
</span> &nbsp;

<#--<h2>-->
<#--    <span style="color: blue;">题目详情</span>-->
<#--</h2>-->
<#list exam.questionList as question>
    <h3>
        <span style="color: blue;">问题 ${question_index + 1}
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <#if question.qesType == 0>
                <span>单选题</span>
            </#if>
            <#if question.qesType == 1>
                <span>多选题</span>
            </#if>
            <#if question.qesType == 2>
                <span>判断题</span>
            </#if>
        </span>
    </h3>
    <h4>${question_index+1}.${question.qesTitle}</h4>

    <#--单选题-->
    <#if question.qesType == 0>
        <#list question.exChoiceList as choice>
            <p>
                <#if choice.answerFlag && choice.examChooseFlag>
                    <span class="correct">${choice.tag}. ${choice.choiceContent}</span>
                <#else>
                    <#if choice.answerFlag && !choice.examChooseFlag>
                        <span class="wrong">${choice.tag}. ${choice.choiceContent}</span>
                    <#else>
                        ${choice.tag}. ${choice.choiceContent}</span>
                    </#if>
                </#if>
            </p>
        </#list>
    </#if>
    <#--多选题-->
    <#if question.qesType == 1>
        <#list question.exChoiceList as choice>
            <p>
                <#if choice.answerFlag && choice.examChooseFlag>
                    <span class="correct">${choice.tag}. ${choice.choiceContent}</span>
                <#else>
                    <#if choice.answerFlag && !choice.examChooseFlag>
                        <span class="wrong">${choice.tag}. ${choice.choiceContent}</span>
                    <#else>
                        ${choice.tag}. ${choice.choiceContent}</span>
                    </#if>
                </#if>
            </p>
        </#list>
    </#if>
    <#--判断题-->
    <#if question.qesType == 2>
        <#list question.exChoiceList as choice>
            <p>
                <#if choice.answerFlag && choice.examChooseFlag>
                    <span class="correct">${choice.tag}. ${choice.choiceContent}</span>
                <#else>
                    <#if choice.answerFlag && !choice.examChooseFlag>
                        <span class="wrong">${choice.tag}. ${choice.choiceContent}</span>
                    <#else>
                        ${choice.tag}. ${choice.choiceContent}</span>
                    </#if>
                </#if>
            </p>
        </#list>
    </#if>
    <p> <b>正确答案:</b> &nbsp; ${question.answerStr}</p>
    <p> <b>您的选择:</b> &nbsp; ${question.choiceStr}</p>
<#--    <p>结果: <#if question.isCorrect><span class="correct">正确</span><#else><span class="wrong">错误</span></#if></p>-->
</#list>
</body>
</html>
